package com.financial.business.management.controller;

import com.financial.business.management.service.FinancialPlatfromConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 平台支付信息表
 * 
 * @author zhaopengjun
 * @email 1428939700@qq.com
 * @date 2019-08-17 17:28:07
 */
 
@RestController
@RequestMapping("/financialPlatfromConfig")
public class FinancialPlatfromConfigController {
	@Autowired
	private FinancialPlatfromConfigService financialPlatfromConfigService;

	/**
	 * @Author zhaopengjun
	 * @Description //  根据平台应用名称获取id'
	 * @Date 17:38 2019/8/17
	 * @Param 
	 * @return 
	 **/
	@GetMapping("/getPlatfromId")
	public int getPlatfromId(@RequestParam String platfromAppname){

		return financialPlatfromConfigService.getPlatfromId(platfromAppname);
	}
	@PostMapping("/getPlatfromConfig")
	public Map<String,Object> getPlatfromConfig(String username, String passWord){
		return financialPlatfromConfigService.getPlatfromConfig(username,passWord);
	}

}
